package com.avic.service;

import com.avic.dal.condition.EmergencyResourceListCondition;
import com.avic.dal.model.EmergencyResource;

import java.util.List;

public interface EmergencyResourceService {

    /**
     * 分页获取应急资源数据
     *
     * @param emergencyResourceListCondition
     * @return
     */
    List<EmergencyResource> emergencyResourceList(EmergencyResourceListCondition emergencyResourceListCondition);

    /**
     * 获取数据总数
     *
     * @param emergencyResourceListCondition
     * @return
     */
    int emergencyResourceListTotal(EmergencyResourceListCondition emergencyResourceListCondition);

    /**
     * 查询应急资源编号的数据量
     *
     * @param emergencyNumber
     * @return
     */
    int emergencyNumberCount(String emergencyNumber);

    /**
     * 创建应急资源数据
     *
     * @param emergencyResource
     * @return
     */
    String createEmergencyResource(EmergencyResource emergencyResource);

    /**
     * 根据ID获取资源数据
     *
     * @param id
     * @return
     */
    EmergencyResource queryEmergencyResourceById(String id);

    /**
     * 删除应急资源
     *
     * @param emergencyResource
     */
    void updateEmergencyResource(EmergencyResource emergencyResource);

    /**
     * 删除应急资源
     *
     * @param id
     */
    void deleteEmergencyResource(String id);
}
